package cn.itcast.up.up_web.bean;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 响应结果的封装
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
//new HTTPResult的时候指定泛型.
public class HttpResult<T> {
    //状态码
    private Integer code;
    //提示信息
    private String msg;
    //响应结果数据
    private T data;
}
